<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
?>
<html>
<head>
</head>
<!-- JavaScript -->
<script type="text/javascript" src="<?php echo base_url() ?>js/wufoo.js"></script>
<?php echo $script; ?>

<!-- CSS -->
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>css/main.css" media="screen, tv, projection" title="Default" />

  <body background="<?php echo base_url();?>/images/stripe.png">
 <?php $atrib_user_kerja='style="width:250px;" id="user_kerja" class="chzn-select field"'?>

 <?php $value['act_form'] = "helpdesk/daftar/assign_job/";
 $value['helpdesk_array'] = $helpdesk_ids_post_array;
 $value['helpdesk_id'] = '';
 foreach ($value['helpdesk_array'] as $index => $id_helpdesk) {
  if (isset($id_helpdesk) && $id_helpdesk != "") {         
        $value['helpdesk_id'] = $value['helpdesk_id'].$id_helpdesk.',';
  }
 }
 echo form_open_multipart($value["act_form"],'class="wufoo" name="assign_helpdesk"'); ?>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
 <tr valign="top">
 <td style="padding:10px;width:40%;">
  <ul> 
        
        <li>
          <label class="desc">User kerja *</label>
            <div>
              <?php $user_kerja = '';
                if(set_value('user_kerja')!='') $user_kerja = set_value('user_kerja');
                  echo form_dropdown('user_kerja', $kerja_options, $user_kerja,$atrib_user_kerja); ?>
            </div>
            <div>
                <input type="hidden" name="helpdesk_id" class="new field" value="<?php if($value['helpdesk_id'] !='') {echo $value['helpdesk_id'];}else {echo '';}?>" />                         
            </div>
        </li>
        <?php echo form_error('user_kerja');
        $js = 'onClick="window.close();"'; ?>

        <li class="buttons">
          <input id="submit" type="submit" value="Simpan" />
            <?php echo form_button('cancel', 'Cancel', $js); ?>
        </li>
  </ul>
  </td>
  </tr>
  </table>
<?= form_close(); ?>
  </body>
</html>